function register() {
    var adminName=$("#adminName").val()
    var adminPass=$("#adminPass").val();
    var adminPhone=$("#adminPhone").val();
    var reAdminPass=$("#reAdminPass").val();
    if(adminName==null||adminName==""||adminPass==null||adminPass==""||reAdminPass==null||reAdminPass==""||adminPhone==null||adminPhone==""){
        alert("请填写完整")
    }else if(adminPass!=reAdminPass){
        alert("密码不一致,请核对")
    } else{
        var data={adminName:adminName,adminPass:adminPass,adminPhone:adminPhone}
        $.ajax({
            url: "adminUser/doRegister",
            method: "Post",
            data: data,
            dataType: "json",
            success: function(data) {
                if(data.code==200){
                    alert("注册成功"+"为您跳转至登陆页")
                    location.href="login"
                }else {
                    alert(data.msg+data.data)
                }
            },
            error: function(data) {
               alert("服务器异常")
            }
        });
    }
}
